import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '变量名',
    dataIndex: 'name',
    width: 240,
  },
  {
    title: '变量值',
    dataIndex: 'value',
    width: 240,
  },
  {
    title: '变量描述',
    dataIndex: 'description',
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 300,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    label: '变量名',
    field: 'name',
    component: 'Input',
    colProps: { span: 6 },
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
  {
    label: '变量名',
    field: 'name',
    required: false,
    component: 'Input',
  },
  {
    label: '变量值',
    field: 'value',
    component: 'Input',
  },
  {
    label: '变量说明',
    field: 'description',
    component: 'Input',
  },
];
